package com.guli.vodtest;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.profile.DefaultProfile;

/**
 * @author zxc
 * @date 2023/04/08 15:01
 **/
public class VodInit {
    // 调用服务端接口需要使用AccessKey完成身份验证。（填入AccessKey信息）
    public static DefaultAcsClient initVodClient(String accessKeyId, String accessKeySecret)
            throws ClientException {
        String regionId = "cn-shanghai";  // 点播服务接入地域
        DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
        DefaultAcsClient client = new DefaultAcsClient(profile);
        return client;
    }
}
